package io.adminboot.repository.extend;

import io.adminboot.entity.SysRole;
import io.adminboot.repository.SysRoleMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SysRoleExtMapper extends SysRoleMapper {

	Long insertAndGetId(SysRole r);
	
	List<SysRole> selectList(@Param("offsetStart") Integer offsetStart, @Param("rowCount") Integer rowCount, @Param("createUserId") Long createUserId);

	int count(@Param("createUserId") Long createUserId);

	List<Long> selectRoleIdList(@Param("createUserId") Long createUserId);

	List<SysRole> selectByCreateUserId(@Param("createUserId") Long createUserId);
	
	void batchDelete(@Param("ids") List<Long> ids);

}
